package com.gdit.zax.dao;

import java.util.List;

import com.gdit.zax.entitys.UserInfo;

public interface UserDao {
	public UserInfo verification (int sid,String name,String pwd);//验证账号密码
	public UserInfo login (int sid, String name, String pwdmd5,String system,String device, int logintype);

	public UserInfo loginByPlatform (int where,String token);//平台登录
	
	public UserInfo getInfobyEmail(String uname,String email);
	public UserInfo getInfobyPhone(String uname,String phone);
	
	public boolean isRegister (int sid,String name);
	public UserInfo getInfo (int logintype,String token);
	public UserInfo getInfo (int uid);
	public boolean updataInfo (UserInfo info);
	
	public boolean bindPlatform(String accesstoken,int where,String ptoken);//绑定登陆平台
	public boolean register (UserInfo info);
	
	public int getRegisterId ();//获取新用户可能的id
	
	
	public boolean addscore(int uid,int score);//添加积分
	
	public int getDoneCourseSum(int uid);//获取用户完成的课程数量
	
	public boolean addUser(UserInfo uinfo);
	
	public List<UserInfo> listUser(int page,int onepagecount);
	
	public boolean setDBuserId(int uid,String dbid);
	
	
}
